﻿using System;
using Model;

namespace ObserverLib
{
    public class Supervision : ISupervision
    {
            //TODO: do something with alerts( for example write to db)
        public void Alert(InvasionAlert alert)
        {
            Mailing.Alert(alert);
        }

        public void RegisterPalace(String palaceName)
        {
            Mailing.NotifyNewPalace(new Palace { Name = palaceName });
        }

        public void RegisterActivity(Palace activity)
        {
            Mailing.NotifyActivity(activity);
        }

        public void RemovePalace(String palaceName)
        {
            Mailing.NotifyPalaceRemove(new Palace { Name = palaceName });
        }

    }
}
